save data in memory caching